import { NgModule } from '@angular/core';

import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { BrowserModule } from '@angular/platform-browser';

import { CommonModule } from '@angular/common';

import { FormsModule } from '@angular/forms';

// import {BusyModule} from './modules/ngx-busy';
// import {BusyModule} from './modules/ng2-busy';
// import { BusyModule } from './modules/busyModule';

import { MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatCardModule, 
  MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatDialogModule, MatExpansionModule, 
  MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, 
  MatNativeDateModule, MatPaginatorModule, MatProgressBarModule, MatProgressSpinnerModule, 
  MatRadioModule, MatRippleModule, MatSelectModule, MatSidenavModule, MatSliderModule, 
  MatSlideToggleModule, MatSnackBarModule, MatSortModule, MatTableModule, MatTabsModule, 
  MatToolbarModule, MatTooltipModule,MAT_PLACEHOLDER_GLOBAL_OPTIONS } from '@angular/material';

import { FlexLayoutModule } from "@angular/flex-layout";

import { AsyncLocalStorageModule } from 'angular-async-local-storage';

import { ToastyModule } from './modules/ng2-toasty';

import { MyDatePickerModule } from './modules/my-date-picker';

import { JasperoAlertsModule } from './modules/ng2-alerts';


// import { Ng2TableModule } from './modules/ng2-table/ng-table-module';
import { NgxPaginationModule } from './modules/ngx-pagination/ngx-pagination.module';


// translate
import { TranslateService,TRANSLATIONS,DICTOINARY, TranslatePipe }   from './translate/index';
@NgModule({
  declarations:[
    TranslatePipe
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    CommonModule,
    FormsModule,
    AsyncLocalStorageModule,
    // BusyModule,
    MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatDialogModule, MatExpansionModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatNativeDateModule, MatPaginatorModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatRippleModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSlideToggleModule, MatSnackBarModule, MatSortModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule,
    FlexLayoutModule,
    ToastyModule,
    MyDatePickerModule,
    JasperoAlertsModule,
    NgxPaginationModule
    
  ],
  providers:[
      {provide: MAT_PLACEHOLDER_GLOBAL_OPTIONS, useValue: {float: 'always'}},
      { provide: TRANSLATIONS, useValue: DICTOINARY, deps: [] },
      TranslateService

  ],
  exports: [
    FormsModule,
    // BusyModule,
    MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatDialogModule, MatExpansionModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatNativeDateModule, MatPaginatorModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatRippleModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSlideToggleModule, MatSnackBarModule, MatSortModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule,
    FlexLayoutModule,
    AsyncLocalStorageModule,
    ToastyModule,
    MyDatePickerModule,
    JasperoAlertsModule,
    NgxPaginationModule,
    TranslatePipe
  ]
})

export class ShareModule {
}
